FOpen

Syntax: @FOpen filename{, 1/2/3}, filenum

The FOpen command opens the filespec given as filename in the mode given as 1 = read, 2 = write or 3 = append. The next available file reference number is returned into the variable name given as filenum, which can be any numeric type variable. Subsequent FRead, FWrite and FClose commands can then reference the file using this value.

Example

@FOpen 'C:\mydir\myfile.txt', 1, FileVar

opens the file myfile.txt for read access and stores the file number in the variable FileVar.